package lang;

import java.io.File;
import java.io.Reader;
import java.io.Writer;
import java.nio.charset.Charset;

import org.nutz.lang.Files;

import extend.lang.Encoding;
import extend.lang.Streams;

public class EncodePractice {

	public static void main(String[] args) {
//		getCharsets();
		
//		getGBK();
//		convertDirEncode(new File("F:/Codes/practice/java/SUDOKU"));
		for(File file : File.listRoots())
			System.out.println(file.getAbsolutePath());
	}

	private static void getGBK() {
		
		Charset gbk=Charset.forName("GBK");
		System.out.println(gbk.canEncode());
	}
	

	
	private static void convertDirEncode(File dir){
		File[] files=Files.files(dir, "java");
	}
	

	private static void getCharsets() {
		for(String s:Charset.availableCharsets().keySet())
		{
			System.out.println(s);
		}
	}
}
